package com.lagou.controller;

import com.lagou.common.ServerResponse;
import com.lagou.service.IEduService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.Map;

@Controller
@RequestMapping("/edu")
public class EduController {

    @Autowired
    private IEduService eduService;

    @RequestMapping(value = "eduCount.do",method = RequestMethod.POST)
    @ResponseBody
    public ServerResponse<Map<String,Object>> getEduCount(){
        return eduService.findEduNum();
    }
}
